package com.lanou.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class Test2Controller {
    @RequestMapping("/test1") // 请求映射
    public String test1() {
        System.out.println("test1..................");
        // 返回逻辑视图index,获得物理视图/index.jsp
        return "index";
    }

    @RequestMapping("/test2") // 请求映射
    public String test2() {
        System.out.println("test2..................");
        return "index";
    }
}
